package com.zxq.consumerservice.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @InterfaceName HelloApi
 * @Description TODO
 * @Author ZXQ
 * @Date: 2020/3/7 00:07
 * @Version 1.0
 */
@FeignClient(name = "producer-service")
public interface HelloApi {
    /**
     * 远程调用方法
     * @param name 名称
     * @return 远程调用结果
     */
    @RequestMapping(value = "/hello")
    String hello(@RequestParam(value = "name") String name);
}
